//
//  WNMineTableViewController.swift
//  WNWeibo
//
//  Created by 风不会停息 on 2017/7/22.
//  Copyright © 2017年 风不会停息. All rights reserved.
//

import UIKit

class WNMineTableViewController: WNVistorViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        
        if isLogin {
            setupNav()
        } else {
            //  没有登录修改访客视图信息
            visitorView?.updateVisitorInfo(message: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人", imageName: "visitordiscover_image_profile")
        }

    }

    func setupNav()
    {
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
        
    }

    func pushAction() {
        
        let testVC = WNTestViewController()
        
        self.navigationController?.pushViewController(testVC, animated: true)
    }
    
    
    
    
    
    
    
    
}
